﻿using System;
using System.Runtime.InteropServices;

namespace MosCraft.Utilities
{
    /// <summary>
    /// Used to bind to system DLL files
    /// </summary>
    internal class PInvoke
    {
        /// <summary>
        /// GetKeyState
        /// </summary>
        /// <param name="keyCode"></param>
        /// <returns></returns>
        [DllImport("user32.dll", CharSet = CharSet.Auto, ExactSpelling = true)]
        internal static extern short GetKeyState(int keyCode);
    }
}
